/* themeConfigProp */
export interface SidearProps {
	opened: boolean;
	withoutAnimation: boolean;
	hide: false;
}


/* tabsMenuProps */
export interface TabsMenuProps {
	alwaysShow: string;
	title: string;
	path: string;
	name: string;
	close: boolean;
}


/* tabsMenuProps */
export interface postProps {
	code: string;
	id: number;
	name: string;
}

/* GlobalState */
export interface GlobalState {
	token: string;
	userInfo: any;
}

/* AuthState */
export interface AppState {
	sidebar: SidearProps;
	device: string;
	size: string;
	theme: string;
}


/* AuthState */
export interface UserState {
	token: string | undefined;
	name: string;
	avatar: string;
	posts: Array<postProps>
	roles: Array<postProps>
	postUser: postProps | undefined,
	username: string
}

/* keepAliveState */
export interface permissionState {
	routes: Menu.MenuOptions[];
	addRoutes: Menu.MenuOptions[];
	defaultRoutes: Menu.MenuOptions[];
	topbarRouters: Menu.MenuOptions[];
	sidebarRouters: Menu.MenuOptions[];
	permissions: string[]
}

export interface tagsViewProps {
	fullPath: string,
	hash: string,
	mathed: [],
	meta: metaProps,
	name: string,
	pamars: Object,
	path: string,
	query: string,
	redirectedFrom: undefined | string,
	
}
export interface metaProps {
	icon:string,
	title:string,
	affix?: Boolean
}
/* AuthState */
export interface TagsViewState {
	visitedViews: Array<tagsViewProps>,
    cachedViews: Array<string>,
}